package a.a.empty;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class SecondActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.second_activity);
		
		//pid
		((TextView)findViewById(R.id.pid)).setText("pid = " + android.os.Process.myPid());
		System.out.println("dhy this activity is SecondActivity");
	}
	
	public void go2Main(View v) {
		Intent i = new Intent(SecondActivity.this,MainActivity.class);
		startActivity(i);
	}
}